<?php /* Smarty version Smarty-3.1.15, created on 2016-10-07 16:02:11
         compiled from "D:\Program Files (x86)\USBWebserver v8.6\root\jh_source\admin\track\include\template\one_page_shop\home_product.tpl" */ ?>
<?php /*%%SmartyHeaderCode:35957e1eb890819e1-74718952%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd6fe790275f83ae6e3c59f757525ee5c6c025632' => 
    array (
      0 => 'D:\\Program Files (x86)\\USBWebserver v8.6\\root\\jh_source\\admin\\track\\include\\template\\one_page_shop\\home_product.tpl',
      1 => 1475827329,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '35957e1eb890819e1-74718952',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_57e1eb89177ba1_19417039',
  'variables' => 
  array (
    'osadmin_action_alert' => 0,
    'osadmin_quick_note' => 0,
    'products' => 0,
    'product' => 0,
    'osadmin_action_confirm' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57e1eb89177ba1_19417039')) {function content_57e1eb89177ba1_19417039($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_alert']->value;?>

<?php echo $_smarty_tpl->tpl_vars['osadmin_quick_note']->value;?>


<div class="block">
    <a href="#page-stats" class="block-heading" data-toggle="collapse">产品列表</a>

    <div id="page-stats" class="block-body collapse in">
        <table class="table table-striped">
            <thead>
            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">产品ID</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">产品名称</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">产品型号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">产品类型</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">类型名称</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">原价</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">特价</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">首页显示</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">预览</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">添加颜色</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">添加首页产品缩略图</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">是否上架</th>
            </tr>
            </thead>
            <tbody>

            <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
                <tr style="background:#fff;">
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['product']->value['products_name'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['product']->value['products_model'];?>


                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['product']->value['products_type'];?>


                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><?php echo $_smarty_tpl->tpl_vars['product']->value['type_name'];?>


                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['product']->value['products_price'];?>


                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['product']->value['products_special_price'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php if ($_smarty_tpl->tpl_vars['product']->value['products_index']>0) {?>
                    <img width=30 height=auto src="<?php echo @constant('ADMIN_URL');?>
/assets/images/gou.png"/>
                        <?php } else { ?>
                    <img width=30 height=auto src="<?php echo @constant('ADMIN_URL');?>
/assets/images/cha.png"/>
                        <?php }?>
                    </td>
                    <?php if ($_smarty_tpl->tpl_vars['product']->value['products_index']>0) {?>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"><a class="btn btn-info"
                                                                                                   href="product.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
"
                                                                                                   target="_blank"
                                                                                                   title="预览"
                                                                                                   alt="预览">预览</a></td>
                    <?php } else { ?>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;"></td>
                    <?php }?>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <a class="btn btn-info"
                           href="product_add_color.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&model=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_model'];?>
"
                           target="_self" title="添加颜色"
                           alt="添加颜色">添加颜色</a></td>
                    </td>
                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <a class="btn btn-info"
                           href="product_add_small.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&model=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_model'];?>
"
                           target="_self" title="添加产品缩略图"
                           alt="添加产品缩略图">添加产品缩略图</a></td>
                    </td>

                    <?php if ($_smarty_tpl->tpl_vars['product']->value['products_index']>0) {?>
                    <td style="color:red;font-size: 14px;font-weight: normal;">
                        <a class="btn btn-info"
                           href="product.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&model=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_model'];?>
&action=modyindex&status=down"
                           target="_self" title="下架"
                           alt="下架"><span style="color: yellow;">下架</span></a></td>
                    </td>
                    <?php } else { ?>
                    <td style="color:blue;font-size: 14px;font-weight: normal;">
                        <a class="btn btn-info"
                           href="product.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&model=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_model'];?>
&action=modyindex&status=up"
                           target="_self" title="上架"
                           alt="上架"><span style="color: blue;">上架</span></a></td>
                    </td>
                    <?php }?>
                </tr>
                <?php } ?>
            </tbody>
        </table>

    </div>
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_confirm']->value;?>


<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
